package cn.edu.scau.cmi.youbaiquan.abstractFactory.factory;

import cn.edu.scau.cmi.youbaiquan.abstractFactory.domainAbstractClass.AbstractInsurance;

public abstract class AbstractInsuranceFactory {
    public static AbstractInsuranceFactory getFactory(String brand) {
        switch (brand) {
            case "中国人寿保险":
                return new PICCFactory();
            case "平安保险":
                return new PingAnFactory();
        }
        return null;
    }

    public abstract AbstractInsurance getAccidentsInsurance();

    public abstract AbstractInsurance getBodyInjureInsurance();

    public abstract AbstractInsurance getCarDamageInsurance();

    public abstract AbstractInsurance getCasualtiesInsurance();
}
